<%@ page contentType="text/html" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="aj4" %>
<f:view >
     <rich:panel id="aprove">
        <f:facet name="header">
            <h:panelGroup>
                <h:outputText value="Aprovar Ordem"></h:outputText>
            </h:panelGroup>
        </f:facet>

		<h:form>  
			<h:outputText value="#{uiorcamentoaprovar.message}" id="lblAprovarNOC" />
			
			<h:commandButton value="Remover" action="success" actionListener="#{uiorcamentoaprovar.doRemoveOF}" rendered="#{uiorcamentoaprovar.kind==1}"/>
			<h:commandButton value="Confirmar" action="success" actionListener="#{uiorcamentoaprovar.doConfirmRemoveOF}" rendered="#{uiorcamentoaprovar.kind==4}"/>
	
			<h:commandButton value="Aprovar" action="success" actionListener="#{uiorcamentoaprovar.doAprove}" rendered="#{uiorcamentoaprovar.kind==2}"/>
	
			<h:inputText value="#{uiorcamentoaprovar.txtNumber}" id="txtAprovarNOC2" rendered="#{uiorcamentoaprovar.kind==3}"/>
			<h:commandButton value="Aprovar" action="success" actionListener="#{uiorcamentoaprovar.doEnd}" rendered="#{uiorcamentoaprovar.kind==3}"/>
			<h:outputText value="#{uiorcamentoaprovar.action}" id="lblAprovaraction" />

		</h:form>
    </rich:panel>
</f:view>